package com.lt.bookkeeping.recycleView;

import android.annotation.SuppressLint;
import android.content.Context;
import android.provider.ContactsContract;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.lt.bookkeeping.R;
import com.lt.bookkeeping.Utils.Utils;
import com.lt.bookkeeping.dataSave.BookKeepData;

import java.text.SimpleDateFormat;

/**
 * @author LiuTong
 */
public abstract class BaseHolder<T> extends RecyclerView.ViewHolder {

    protected Context context;
    public BaseHolder(@NonNull View itemView) {
        super(itemView);
        context = itemView.getContext();
        initView(itemView);
    }

    /***
     * 初始化控件
     * @param view
     */
    public abstract void initView(View view);

    /***
     * 绑定数据
     * @param data
     */
    public abstract void onBind(T data);


}
